Skip to main content

Create A Command

Create your first Custom Command​

Create a file called ptopz.py for example:

ptopz.py
from ptop import *
def modez():
default()
## Add Your Own Custom Code Beneath ⬇
## For Example print("Hello From Ptop")

And At The Top Of main.py add

main.py
from ptopz import *

And Behind

main.py
elif command=="ptop -a .exit":
modea()
break

Add

elif command=="ptop -z":
modez()

A new command is now available when executing main.py

Danger

If You Accidentally Deleted Something Wrong It Might Not Work